//
//  LsGlobal.m
//  MIC_MoveModelExample
//
//  Created by 李爽 on 15/11/16.
//  Copyright (c) 2015年 Shawn Li. All rights reserved.
//

#import "LsGlobal.h"

@implementation LsGlobal

+ (LsGlobal *)global {
    static LsGlobal *s_global = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        s_global = [[LsGlobal alloc] init];
    });
    
    return s_global;
}

- (id)init
{
    self = [super init];
    if (self) {
        //从本地读取用户信息（如果有则已登录过，没有则没登陆）
        //self.userInfo = [[UserInfo alloc] init];
    }
    return self;
}

+ (BOOL)isSystemLowIOS8 {
    if ([[[UIDevice currentDevice] systemVersion] floatValue] < 8.0) {
        return YES;
    }
    
    return NO;
}

+ (void)alertMessage:(NSString *)message {
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"提示" message:message delegate:nil cancelButtonTitle:@"取消" otherButtonTitles:@"确定", nil];
    [alert show];
}

@end
